package com.sc.auction.goods.feign;

import com.sc.auction.common.pojo.Auction;
import com.sc.auction.common.util.R;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@Service
@FeignClient(name = "sc-auction")
public interface GoodsAuctionService {
    @PostMapping(value = "/auction/auction/postAuction")
    public R postAuction(@ApiParam(value = "拍品")@RequestBody Auction auction);
}
